package com.itedge.solutionmanager.domain.dto;

import com.itedge.solutionmanager.domain.impl.Employee;

/**
 * Wrapper DTO (Data Transfer Object) around domain object 'Employee'
 */
public class EmployeeDto {
	
	private Long id;
	private String username;
	private String firstName;
	private String secondName;
	private String email;
	
	/**
	 * Constructor of wrapper class
	 * 
	 * @param employee
	 */
	public EmployeeDto(Employee employee) {
		this.username = employee.getUsername();
		this.firstName = employee.getFirstName();
		this.secondName = employee.getSecondName();
		this.email = employee.getAddress().getEmail();
		this.id =  employee.getId();
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getSecondName() {
		return secondName;
	}

	public void setSecondName(String secondName) {
		this.secondName = secondName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
